// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import Nav from '@/pages/Nav'
import App from './App'
import router from './router'
import store from './store.js'
import axios from 'axios'
import packagingUtil from './packagingUtil.js'
import './assets/css/common.css'
import './plugins/element.js'
import ConfirmBox from './components/ConfirmBox'
Vue.use(ConfirmBox)

Vue.config.productionTip = false
Vue.prototype.$axios = axios; 

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App />',
  methods:{
    
  },
  created() {
    this.$nextTick(function () {
      let spaceId = packagingUtil.getUrlStr("spaceId");
      this.$store.commit('setSpaceId',spaceId);
      this.$store.commit('getProductInfo',this);
    })
  }
})
